import request from '@/utils/request'

export default {
    getSchoList(searchModel){
        return request({
            url: '/test/test3',
            method: 'get',
            params:{
                // 这里的参数一定要和后端一直，前面的键
            //    pageNo: searchModel.pageNo,
            //    pageSize: searchModel.pageSize,
               stuName: searchModel.stuName,
               stuId: searchModel.stuId,
               grade: searchModel.grade,
               status: searchModel.status
            }
        })
    },
    // 获取信息
    
    addSchoInfo(user){
        return request({
            url: '/help/func2',
            method: 'post',
            data: user
        });
    },
    getSchoInfoById(stuId){
        return request({
            // url: '/user' + stuId,
            url: `/user/${id}`,
            method: 'get',
        })
    },
    updateSchoinfo(user){
        return request({
            // url: '/user' + stuId,
            url: `/user`,
            method: 'put',
            data: user
        })
        
    },
    getUser(){
        return request({
            url : '/getUser',
            method: 'post',
            
        })
    }
   
    
    
}
